#pragma once
#include <QGLWidget>
#include <glew.h>


class Render : public QGLWidget
{
	Q_OBJECT

public:
	Render(QWidget *parent = 0);
	~Render(void);

protected:
	void initializeGL();
	void resizeGL(int w, int h);
	void paintGL();
	void mousePressEvent(QMouseEvent *event);
	void mouseMoveEvent(QMouseEvent *event);
	void mouseReleaseEvent(QMouseEvent *event);
	void wheelEvent(QWheelEvent *event);
	void keyPressEvent(QKeyEvent *event);

private:
	bool error;
	int screenWidth, screenHeight;
};

